home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000117_icon-group-sender _Fri May 6 16:03:38 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  18KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 6 May 1994 12:53:55 MST
  2. Path: ucbvax!agate!howland.reston.ans.net!usc!nic-nac.CSU.net!news.Cerritos.edu!news.Arizona.EDU!math.arizona.edu!CS.Arizona.EDU!not-for-mail
  3. From: icon-project@cs.arizona.edu
  4. Newsgroups: comp.lang.icon,comp.answers,news.answers
  5. Subject: Icon Programming Language FAQ
  6. Message-Id: <2qdpoq$od2@optima.cs.arizona.edu>
  7. Date: 6 May 94 16:03:38 GMT
  8. Sender: icon@cs.arizona.edu
  9. Reply-To: icon-project@cs.arizona.edu
  10. Followup-To: comp.lang.icon
  11. Organization: University of Arizona CS Department, Tucson AZ
  12. Lines: 402
  13. Approved: news-answers-request@MIT.Edu
  14. Nntp-Posting-Host: optima.cs.arizona.edu
  15. Apparently-To: icon-group@cs.arizona.edu
  16. Status: R
  17. Errors-To: icon-group-errors@cs.arizona.edu
  18.  
  19. Archive-name: comp-lang-icon-faq
  20.  
  21.  
  22.     Frequently Asked Questions About The Icon Programming Language
  23.  
  24. last updated: 03/04/94
  25.  
  26. This FAQ answers various questions about the Icon programming language,
  27. ranging from what it is to how you can get it.  This first version of the
  28. Icon FAQ is devoted to the issues that are likely to be of most interest
  29. to persons who don't know anything about Icon or who are relatively
  30. new to it.  Future versions of this FAQ will answer questions from
  31. more experienced Icon programmers.
  32.  
  33. This FAQ is written by Ralph Griswold with help from Cliff Hathaway,
  34. Clint Jeffery, and Gregg Townsend.
  35.  
  36. Section I -- General Questions:
  37.  
  38. I.1.   What is Icon?
  39. I.2.   What is Icon good for?
  40. I.3.   Where did Icon come from?
  41. I.4.   What does "Icon" stand for?
  42. I.5.   On what computers does Icon run?
  43. I.6.   Who did all these implementations?
  44. I.7.   Are there other implementations in the works?
  45. I.8.   Are there different versions of Icon?
  46. I.9.   Which implementations of Icon have graphics/window capabilities?
  47. I.10.  Where can I get Icon?
  48. I.11.  Where can I get documentation about Icon?
  49. I.12.  What is the Icon Project?
  50. I.13.  Where can I find examples of Icon programs?
  51. I.14.  What is Idol?
  52. I.15.  How often is material in Icon's FTP area updated?
  53. I.16.  How do I stay up to date with what's going on with Icon?
  54. I.17.  Why isn't the Icon Newsletter available electronically?
  55. I.18.  Is there a users' group for Icon?
  56. I.19.  How do I get technical support?
  57. I.20.  Is there an optimizing compiler for Icon?
  58. I.21.  What do I need to run the interpreter?
  59. I.22.  What do I need to run the compiler?
  60. I.23.  Can I build my own implementation of Icon for a new platform?
  61.  
  62. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  63.  
  64. I.1.   What is Icon?
  65.  
  66. Icon is a very high level general-purpose programming language with
  67. extensive features for processing strings (text) and data structures.
  68. Icon is an imperative, procedural language with a syntax that is
  69. reminiscent of C and Pascal, but its semantics are at a much higher level
  70. than those languages.
  71.  
  72. Icon has a novel expression-evaluation mechanism that integrates goal-
  73. directed evaluation and backtracking with conventional control structures.
  74. It has a string scanning facility for pattern matching that avoids 
  75. the tedious details usually associated with analyzing strings. Icon's
  76. built-in data structures include sets and tables with associative lookup,
  77. lists that can be used as vectors or stacks and queues, and records.
  78.  
  79. Icon is a strongly, though not statically, typed language. It provides
  80. transparent automatic type conversion. For example, if an integer is
  81. used in an operation that requires a string, the integer is automatically
  82. converted to a string.
  83.  
  84. Several implementations of Icon have high-level graphics facilities with
  85. an easily programmed window interface.
  86.  
  87. Icon manages storage automatically. Objects are created as needed during
  88. program execution and space is reclaimed by garbage collection as needed.
  89. The sizes of strings and data structures are limited only by the amount
  90. of available memory.
  91.  
  92.  
  93. I.2.   What is Icon good for?
  94.  
  95. As a general-purpose programming language with a large computational
  96. repertoire, Icon can be used for most programming tasks.  It's at
  97. its best when used as a prototyping tool, for processing text, and when
  98. ease of programming is needed for experimental and research applications.
  99.  
  100. Paradoxically, Icon is used most often for short, one-shot tasks and for very
  101. complex applications.
  102.  
  103. Icon is designed to make programming easy; it emphasizes the value of
  104. programmer's time and the importance of getting programs to work quickly.
  105. This explains its usefulness for prototyping as well as the apparent
  106. paradox of applicability to simple and complex applications.
  107.  
  108.  
  109. I.3.   Where did Icon come from?
  110.  
  111. Icon is the latest in a series of high-level programming languages designed
  112. to facilitate programming tasks involving strings and structures. The
  113. original language, SNOBOL, was developed at Bell Telephone Laboratories
  114. in the early 60s.  SNOBOL evolved into SNOBOL4, which is still in use.
  115. Subsequent languages were developed at The University of Arizona with
  116. support from the National Science Foundation.
  117.  
  118. Incidentally, Icon bears little physical resemblance to SNOBOL4, although
  119. it has similar objectives and many similar capabilities.
  120.  
  121.  
  122. I.4.   What does "Icon" stand for?
  123.  
  124. The name Icon (which is not spelled ICON) is not an acronym nor does it
  125. stand for anything in particular, although the word iconoclastic was
  126. mentioned at the time the name was chosen.  The name predates the now
  127. common use of "icon" to refer to small images used in graphical user
  128. interfaces.  This latter usage sometimes causes persons to think mistakenly
  129. that Icon is designed to create or manipulate icons.  There's not much
  130. that can be done about this.
  131.  
  132.  
  133. I.5.   On what computers does Icon run?
  134.  
  135. The implementation of Icon is highly portable. There are versions for
  136. the Acorn Archimedes, the Amiga, the Atari ST, IBM CMS and MVS, the
  137. Macintosh, MS-DOS, OS/2, UNIX, and VMS.  Nearly 60 UNIX platforms are
  138. supported.
  139. Icon programs also are highly portable. Most Icon programs can run on
  140. any platform that supports Icon.
  141.  
  142.  
  143. I.6.   Who did all these implementations?
  144.  
  145. The original implementation of Icon for UNIX was done at The University
  146. of Arizona.  Most of the other implementations originally were done
  147. by volunteers scattered around the world.
  148.  
  149. It's worth noting that all implementations of Icon are based on the same
  150. source code, which is written in C.  This contributes to the portability 
  151. of Icon itself, as well as to the portability of programs written in Icon.
  152.  
  153.  
  154. I.7.   Are there other implementations in the works?
  155.  
  156. Yes, work is constantly underway on implementations of Icon for new
  157. platforms.  Present projects include Windows NT, Win32, the DEC Alpha
  158. running under UNIX, and a new Macintosh implementation.
  159.  
  160.  
  161. I.8.   Are there different versions of Icon?
  162.  
  163. Icon has evolved through a series of versions with improved and extended
  164. capabilities.  The latest major version number is 8.  Recent changes
  165. and additions, notably in the graphics area, have brought the current
  166. level to 8.10.  (Version 8.11 is, of course, in the works.)  Most
  167. implementations are up to 8.10, although a few for less frequently
  168. used platforms are still at 8.0.  Almost all 8.0 programs will run
  169. under 8.10.
  170.  
  171.  
  172. I.9.   Which implementations of Icon have graphics/window capabilities?
  173.  
  174. Icon's graphics facilities presently are supported on the OS/2, UNIX, and
  175. VMS implementations.  The UNIX and VMS implementations use X, while the
  176. OS/2 implementation uses Presentation Manager.
  177.  
  178. The NT, Win32, and DEC Alpha implementations that are in progress
  179. will support Icon's graphics facilities.  A Macintosh
  180. implementation to support graphics also is in the works.
  181.  
  182.  
  183. I.10.  Where can I get Icon?
  184.  
  185. Most implementations of Icon are available via anonymous FTP to
  186. cs.arizona.edu in /icon.  The directory /icon/binaries contains executable
  187. versions of Icon for several systems, including several popular UNIX
  188. platforms.  The directory /icon/packages contains source code and
  189. related material.  All directories have READ.ME files with additional
  190. information.
  191.  
  192. Icon also is available on a variety of physical media for prices ranging
  193. from $15 to $50.  Contact:
  194.  
  195.     Icon Project
  196.     Department of Computer Science
  197.     The University of Arizona
  198.     Tucson, AZ   85721
  199.  
  200.     602-621-8448 (voice)
  201.     602-621-4246 (fax)
  202.  
  203.     icon-orders@cs.arizona.edu (e-mail)
  204.  
  205. Request a copy of the Icon Newsletter for a listing of what's available
  206. and what the prices are.
  207.  
  208. Purchases can be made by credit card (MasterCard, Visa, or Discover) or
  209. by check drawn on a bank with a branch in the United States and made
  210. payable to The University of Arizona.
  211.  
  212.  
  213. I.11.  Where can I get documentation about Icon?
  214.  
  215. The definitive work on Icon is the book
  216.  
  217.     The Icon Programming Language, Griswold and Griswold,
  218.     Prentice-Hall, 1990, 368 pages, ISBN 0-13-447889-4.
  219.  
  220. This book is a complete description and reference manual for Version 8 of
  221. Icon.
  222.  
  223. There also is a book on the implementation of Icon:
  224.  
  225.     The Implementation of the Icon Programming Language, Griswold
  226.     and Griswold, Princeton University Press, 1986, 336 pages, ISBN
  227.     0-691-08431-9.
  228.  
  229. This book describes the implementation as of Version 6 of Icon.  Although
  230. the implementation has changed somewhat since then, the basic structure
  231. is the same.  Technical reports describing recent implementation changes
  232. are included with books purchased from the Icon Project.
  233.  
  234. These books are available from the Icon Project or from any book store
  235. that handles special orders.
  236.  
  237. Additional documentation is available via FTP in /icon/doc.  Notable
  238. documents are:
  239.  
  240.     TR 90-6      an overview of Icon
  241.     TR 93-9      graphics/window facilities
  242.     IPD212      changes between Versions 8.0 and 8.10
  243.  
  244. There are manual pages for UNIX systems, but there is no complete
  245. on-line documentation.  
  246.     
  247. The Icon Newsletter, which includes topical material about Icon and
  248. a list of material available from the Icon Project, is published three
  249. times a year.  Subscriptions are free; contact the Icon Project to get
  250. a copy of the latest Newsletter and to be put on the mailing list.
  251.  
  252. The Icon Analyst, a technically oriented newsletter that features articles
  253. about programming, is published six times a year.  There is a subscription
  254. fee for the Analyst.  A sample copy is available on request.
  255.  
  256. All back issues of both newsletters are available for purchase.
  257.  
  258.  
  259. I.12.  What is the Icon Project?
  260.  
  261. The Icon Project is a name used by the group at The University of
  262. Arizona that develops, implements, distributes, and supports the
  263. Icon programming language.
  264.  
  265. The Icon Project is not commercial organization.  It derives support
  266. from The University of Arizona, grants, and (primarily) revenue from
  267. the sale of program material and documentation.
  268.  
  269.  
  270. I.13.  Where can I find examples of Icon programs?
  271.  
  272. There is a large program library for Icon.  It is an excellent resource
  273. for both new and experienced programmers, containing numerous examples of
  274. how to do things with Icon.  The library also provides many useful
  275. applications, as well as hundreds of procedures that supplement Icon's
  276. built-in repertoire.
  277.  
  278. The library, like other Icon material, is available via FTP (cd /icon/library)
  279. and on physical media from the Icon Project.
  280.  
  281.  
  282. I.14.  What is Idol?
  283.  
  284. Idol is an object-oriented extension to Icon that provides concepts such
  285. as classes and multiple inheritance.  Idol is written in Idol and is
  286. distributed as part of the Icon program library.  Idol runs on almost all
  287. of the platforms that Icon runs on.
  288.  
  289. Additional Idol information is available from Clint Jeffery,
  290. jeffery@ringer.cs.utsa.edu.
  291.  
  292.  
  293. I.15.  How often is material in Icon's FTP area updated?
  294.  
  295. New material is added when it's available.  Established implementations
  296. usually are only updated when there's a major new release.  This typically
  297. is every year or two.  The Icon program library is updated on a similar
  298. schedule.
  299.  
  300.  
  301. I.16.  How do I stay up to date with what's going on with Icon?
  302.  
  303. The best way to find out about developments related to Icon is to
  304. subscribe to the Icon Newsletter.  It's free, but it is distributed
  305. only by postal mail, so you must provide a mailing address.
  306.  
  307. You can stay up to date on the source code, which is changed much more
  308. frequently than the version on FTP is updated, by subscribing to the
  309. source update service, which provides a new version about three times
  310. a year.
  311.  
  312. There also is a subscription service for updates to the Icon program
  313. library, which provides new material three or four times a year.
  314.  
  315. See the Icon Newsletter for information about subscribing to these
  316. services.
  317.  
  318.  
  319. I.17.  Why isn't the Icon Newsletter available electronically?
  320.  
  321. The Icon Newsletter contains diagrams, images, and other material that
  322. cannot be rendered in plain ASCII text.  The Newsletter is prepared with
  323. a desktop publishing system that produces PostScript, but the files are
  324. enormous -- too large to include in the Icon FTP area.  Selected articles
  325. from the Newsletter are available by FTP in /icon/doc/articles.
  326.  
  327.  
  328. I.18.  Is there a users' group for Icon?
  329.  
  330. There is no official Icon users' group.  The Icon Project maintains an
  331. electronic mailing list, icon-group@cs.arizona.edu.  Mail sent to this address
  332. is forwarded to subscribers.  To subscribe (or unsubscribe), send a
  333. message to icon-group-request@cs.arizona.edu.
  334.  
  335. There is a gateway between icon-group and comp.lang.icon, an unmoderated
  336. newsgroup for discussing issues related to Icon.  The gateway, which
  337. exchanges messages between the two systems, is imperfect and not under
  338. the control of the Icon Project.
  339.  
  340. The newsgroup generally provides faster response than the mailing list.
  341. The newsgroup is less intrusive, but it sometimes suffers from inappropriate
  342. postings.  The Icon Project usually sends messages of interest to the
  343. Icon community to icon-group.
  344.  
  345. I.19.  How do I get technical support?
  346.  
  347. Free technical support is available from the Icon Project via electronic
  348. mail to icon-project@cs.arizona.edu or by fax, telephone, and postal mail
  349. to the Icon Project as listed above.
  350.  
  351. Since the Icon Project is not a commercial organization, support is limited
  352. to what it can provide with its available resources.  If the Icon Project
  353. cannot help with a problem (such as for a platform it doesn't have), it will
  354. attempt to provide a contact with someone who can help.
  355.  
  356.  
  357. I.20.  Is there an optimizing compiler for Icon?
  358.  
  359. Yes.  The original implementation was an interpreter.  An optimizing
  360. compiler was added a few years ago.  The interpreter and compiler are
  361. largely source-language compatible.
  362.  
  363. The interpreter is used by most Icon programmers because it gets into
  364. execution quickly and runs fast enough for most applications.  The compiler
  365. is best suited for applications that require the fastest possible
  366. execution time.  In this case, it's generally best to develop the program
  367. using the interpreter and then compile the final result for production use.
  368.  
  369.  
  370. I.21.  What do I need to run the interpreter?
  371.  
  372. The Icon interpreter will run on most computers.  It requires a reasonable
  373. amount of memory, however.   Under MS-DOS, the Icon interpreter needs
  374. 500KB of application RAM to work well.
  375.  
  376.  
  377. I.22.  What do I need to run the compiler?
  378.  
  379. The Icon compiler is another matter.  It requires a C compiler, a fast
  380. CPU for tolerable compilation times, a considerable amount of disk
  381. space, and a lot of memory -- at least several megabytes.
  382.  
  383. The Icon compiler generates C code, which must then be compiled to
  384. produce an executable program.  The flexibility that Icon provides to
  385. programmers makes compilation technically difficult and the process
  386. requires a large amount of memory.  The C code it produces is voluminous
  387. and stresses the most robust C compilers.
  388.  
  389. Generally speaking, the Icon compiler is practical for platforms in
  390. the workstation class but not for most personal computers.  Although
  391. the compiler can be built and made to run on 286 platforms running
  392. standard MS-DOS, only trivially small programs can be compiled.  In
  393. principle, the Icon compiler is practical on MS-DOS 386/486 platforms
  394. with extended memory, but the limited availability of suitable 32-bit C
  395. compilers for this environment has discouraged the use of the Icon compiler
  396. on such platforms.
  397.  
  398.  
  399. I.23.  Can I build my own implementation of Icon for a new platform?
  400.  
  401. As mentioned above, Icon is written in C and the source code is available
  402. via FTP and the Icon Project.  The existing implementations are testament
  403. to its portability.  (a small amount of assembly-language code is
  404. required for a context switch, but this is only needed for an optional
  405. feature -- co-expressions -- that can be disabled without affecting most
  406. of Icon.)
  407.  
  408. New ports involve platform-specific configuration parameters and, in
  409. some cases, platform-specific code.  The feasibility of a new port and
  410. the amount of work it may take depends on the platform -- its architecture,
  411. its C compiler, and its environment.
  412.  
  413. Ports to new UNIX platforms generally are easy, although novel architecture
  414. may present problems.  Ports to new operating systems generally are
  415. more difficult, especially if Icon's graphics facilities are implemented.
  416.  
  417. The Icon Project provides what help it can with new ports.  In return, it
  418. asks that code related to the port to be returned to the Icon Project for
  419. inclusion in future versions of the source code for Icon.  This makes the
  420. new port available to others as well as to the porter when Icon is updated.
  421.